﻿@model List<nwrole.toolbox.sync.entity.IntMessageRow>

@{
    ViewBag.Title = "FailedMessageRows";
}

<h2>Failed Message</h2>
<div class="box">
    <div class="form">
        <ul class="fields">
            <li class="field wide">
                @Html.Label("Id")
                <div class="input">@ViewBag.Message.Id</div>
            </li>
            <li class="field wide">
                @Html.Label("MsgType")
                <div class="input">@ViewBag.Message.MsgType</div>
            </li>
            <li class="field wide">
                @Html.Label("RegDat")
                <div class="input">@ViewBag.Message.RegDat</div>
            </li>
            <li class="field wide">
                @Html.Label("Status")
                <div class="input">@ViewBag.Message.Status</div>
            </li>
            <li class="field wide">
                @Html.Label("MsgCorr")
                <div class="input">@ViewBag.Message.MsgCorr</div>
            </li>
        </ul>
    @*Id: @Model.Id<br />
    Name: @Model.Name<br />
    Table name: @Model.SourceTableName<br />
    Sync enabled: @Model.SyncEnabled<br />
    Last sync: @Model.SyncDat<br />*@
    </div>
</div>

<h2>Failed MessageRows</h2>
<table class="box">
    <tr>
        <th>MessageId</th>
        <th>MessageStatus</th>
        <th>MessageRowId</th>
    </tr>
    @foreach (var row in Model)
    {
        <tr>
            <td class="form">
                @row.MessageId
            </td>
            <td class="form">
                @row.MessageStatus
            </td>
            <td class="form">
                @row.MessageRowId
            </td>
        </tr>    
    }
</table>

<a href="@Url.Action("FailedMessages")">Back</a>
